package com.jcl.recruit.core.common;

/**
 * @author 刘明新
 * @date 2018/8/3 下午3:21
 */
public class CommonEnum {

    public static enum ChannelStatus{
        ZHAOPIN("zhaopin", "智联"),
        LAGOU("lagou", "拉勾"),
        LIEPIN("liepin", "猎聘"),
        ZHIPIN("zhipin", "Boss"),
        _51JOB("51job", "51job");

        private final String index;
        private final String name;

        private ChannelStatus(String index, String name){
            this.index = index;
            this.name = name;
        }

        public String getIndex() {
            return index;
        }

        public static String getName(String index) {
            ChannelStatus[] var1 = values();
            for(int i = 0; i < var1.length; i ++ ){
                ChannelStatus status = var1[i];
                if(status.getIndex().equals(index)){
                    return status.name;
                }
            }
            return null;
        }
    }
    public static enum WorkYearStatus{
        ONE(1, "应届生"),
        TWO(2, "1-3年"),
        THREE(3, "3-5年"),
        FOUR(4, "5年以上");

        private final int index;
        private final String name;

        private WorkYearStatus(int index, String name){
            this.index = index;
            this.name = name;
        }

        public int getIndex() {
            return index;
        }

        public static String getName(int index) {
            WorkYearStatus[] var1 = values();
            for(int i = 0; i < var1.length; i ++ ){
                WorkYearStatus status = var1[i];
                if(status.getIndex() == index){
                    return status.name;
                }
            }
            return null;
        }
    }
    public static enum interviewSkdStatus {
        ONE(0, "进行中"),
        TWO(1, "面试通过"),
        THREE(2, "未参加"),
        FOUR(-1, "面试不通过");

        private final int index;
        private final String name;

        private interviewSkdStatus(int index, String name) {
            this.index = index;
            this.name = name;
        }

        public int getIndex() {
            return this.index;
        }

        public static String getName(int index) {
            interviewSkdStatus[] var1 = values();
            int var2 = var1.length;

            for(int var3 = 0; var3 < var2; ++var3) {
                interviewSkdStatus c = var1[var3];
                if (c.getIndex() == index) {
                    return c.name;
                }
            }

            return null;
        }
    }

    public static enum interviewStatus {
        ONE(0, "进行中"),
        TWO(1, "通过"),
        THREE(-2, "未参加"),
        FOUR(-1, "未通过"),
        FIVE(-3, "通过未入职");

        private final int index;
        private final String name;

        private interviewStatus(int index, String name) {
            this.index = index;
            this.name = name;
        }

        public int getIndex() {
            return this.index;
        }

        public static String getName(int index) {
            interviewStatus[] var1 = values();
            int var2 = var1.length;

            for(int var3 = 0; var3 < var2; ++var3) {
                interviewStatus c = var1[var3];
                if (c.getIndex() == index) {
                    return c.name;
                }
            }

            return null;
        }
    }

    public static enum jobStatus {
        ONE(0, "正常"),
        TWO(-1, "关闭"),
        THREE(-2, "下线");

        private final int index;
        private final String name;

        private jobStatus(int index, String name) {
            this.index = index;
            this.name = name;
        }

        public int getIndex() {
            return this.index;
        }

        public static String getName(int index) {
            jobStatus[] var1 = values();
            int var2 = var1.length;

            for(int var3 = 0; var3 < var2; ++var3) {
                jobStatus c = var1[var3];
                if (c.getIndex() == index) {
                    return c.name;
                }
            }

            return null;
        }
    }

    public static enum resumeApplyStatus {
        ONE(1, "观望"),
        TWO(2, "不找工作"),
        THREE(3, "寻找工作中");

        private final int index;
        private final String name;

        private resumeApplyStatus(int index, String name) {
            this.index = index;
            this.name = name;
        }

        public int getIndex() {
            return this.index;
        }

        public static String getName(int index) {
            resumeApplyStatus[] var1 = values();
            int var2 = var1.length;

            for(int var3 = 0; var3 < var2; ++var3) {
                resumeApplyStatus c = var1[var3];
                if (c.getIndex() == index) {
                    return c.name;
                }
            }

            return null;
        }
    }

    public static enum resumeEdus {
        ONE(1, "高中"),
        TWO(2, "大专"),
        THREE(3, "专科"),
        FOUR(4, "本科"),
        FIVE(5, "硕士"),
        SIX(6, "博士");

        private final int index;
        private final String name;

        private resumeEdus(int index, String name) {
            this.index = index;
            this.name = name;
        }

        public int getIndex() {
            return this.index;
        }

        public static String getName(int index) {
            resumeEdus[] var1 = values();
            int var2 = var1.length;

            for(int var3 = 0; var3 < var2; ++var3) {
                resumeEdus c = var1[var3];
                if (c.getIndex() == index) {
                    return c.name;
                }
            }

            return null;
        }
    }

    public static enum resumeStatus {
        ONE(1, "待处理"),
        TWO(2, "待定"),
        THREE(3, "面试中"),
        FOUR(4, "不合适");

        private final int index;
        private final String name;

        private resumeStatus(int index, String name) {
            this.index = index;
            this.name = name;
        }

        public int getIndex() {
            return this.index;
        }

        public static String getName(int index) {
            resumeStatus[] var1 = values();
            int var2 = var1.length;

            for(int var3 = 0; var3 < var2; ++var3) {
                resumeStatus c = var1[var3];
                if (c.getIndex() == index) {
                    return c.name;
                }
            }

            return null;
        }
    }
}
